﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucFindJob.ascx.cs" Inherits="UserControl_ucFindJob" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<link href="../css/content.css" rel="stylesheet" type="text/css" />
<div class="full_width">
    <p class="breadcrumb">
        <a href="Default.aspx">Home</a> / <strong class="active-link">Page Title</strong></p>
</div>
<div class=" block">
    <div id="left-navigation">
        <h3>
            Functions</h3>
        <table width="100%" style="margin-right: 5px">
            <tr>
                <td>
                    <asp:Button ID="btnSave" runat="server" Text="SEARCH" CssClass="button_all" OnClick="btnSave_Click" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnPrint" runat="server" Text="PRINT JOB SHEET" CssClass="button_all" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnExt" runat="server" Text="EXIT" CssClass="button_all" OnClick="btnExt_Click" />
                </td>
            </tr>
        </table>
    </div>
</div>
<div class="right_three r-align  ">
    <h3>
        JOB SEARCH</h3>
    <table id="table4" width="100%">
        <tr>
            <td align="right">
                Job Number
            </td>
            <td>
                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers"
                    TargetControlID="txtJobID">
                </asp:FilteredTextBoxExtender>
                <asp:TextBox ID="txtJobID" CssClass="inp-form" runat="server"></asp:TextBox>
            </td>
        </tr>
    </table>
</div>
<div class="full">
    <ul class="tabs ">
        <li class="active"><a href="#a">Result</a></li>
    </ul>
    <div class="tab_container inner">
        <div class="tab_content" id="a" style="display: block;">
            <!--Content-->
            <p class="main">
                <%--<fieldset width="900">
                    <legend><span style="color: Red; font-size: large">Job</span></legend>--%>
                <asp:GridView ID="grdJobList" runat="server" AutoGenerateColumns="False"
                    CssClass="grd" OnRowDataBound="grdJobList_RowDataBound" AllowPaging="True" 
                    PageSize="6" onpageindexchanging="grdJobList_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField HeaderText="JobId" HeaderStyle-Height="50px">
                            <ItemTemplate>
                                <%# Eval("JobId")%></ItemTemplate>
                            <HeaderStyle Height="50px"></HeaderStyle>
                            <ItemStyle Height="70px" VerticalAlign="Middle" HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="IMEINo">
                            <ItemTemplate>
                                <%# Eval("IMEINo")%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" Wrap="True" Font-Bold="true" Width="70px"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Description Fault">
                            <ItemTemplate>
                                <%# Eval("FaultDescription")%>
                            </ItemTemplate>
                            <ItemStyle Width="200px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="CustomerFullname" HeaderStyle-Width="100px">
                            <ItemTemplate>
                                <%# Eval("CustomerFullname")%>
                            </ItemTemplate>
                            <HeaderStyle Width="100px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" Width="70px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="DateBook" HeaderStyle-Width="100px">
                            <ItemTemplate>
                                <%# (Convert.ToDateTime(Eval("DateBook")).ToString("dd/MM/yyyy"))%>
                            </ItemTemplate>
                            <HeaderStyle Width="100px"></HeaderStyle>
                            <ItemStyle Width="90px" VerticalAlign="Middle" HorizontalAlign="center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Expected Completion Date" HeaderStyle-Width="170px">
                            <ItemTemplate>
                                <%# (Convert.ToDateTime(Eval("ExpectedCompletionDate")).ToString("dd/MM/yyyy"))%>
                            </ItemTemplate>
                            <HeaderStyle Width="170px"></HeaderStyle>
                            <ItemStyle Width="90px" VerticalAlign="Middle" HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Date Completed" HeaderStyle-Width="170px">
                            <ItemTemplate>
                                <%#( Convert.ToDateTime(Eval("DateCompleted")).ToString("dd/MM/yyyy"))%>
                            </ItemTemplate>
                            <HeaderStyle Width="170px"></HeaderStyle>
                            <ItemStyle Width="90px" VerticalAlign="Middle" HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Approval Status" HeaderStyle-Width="50px">
                            <ItemTemplate>
                                <%-- <%# Eval("ApprovalStatus")%>--%>
                                <asp:Label ID="lbApprovalStatus" runat="server"></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Width="50px"></HeaderStyle>
                            <ItemStyle Width="90px" VerticalAlign="Middle" HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Quotation Status" HeaderStyle-Width="50px">
                            <ItemTemplate>
                                <%-- <%# Eval("QuotationStatus")%>--%>
                                <asp:Label ID="lbQuotationStatus" runat="server"></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Width="50px"></HeaderStyle>
                            <ItemStyle Width="90px" VerticalAlign="Middle" HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="SalesAmount" HeaderStyle-Width="70px">
                            <ItemTemplate>
                                <%# Eval(" SalesAmount")%>
                            </ItemTemplate>
                            <HeaderStyle Width="70px"></HeaderStyle>
                            <ItemStyle Width="90px" VerticalAlign="Middle" HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle CssClass="grdHeader" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle CssClass="grdAlternateRow" />
                    <PagerSettings PageButtonCount="6" />
                    <RowStyle CssClass="grdRow" />
                </asp:GridView>
                <%--</fieldset>--%>
            </p>
        </div>
    </div>
</div>
